```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>字母异位词分组算法解析</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        }
        .code-block {
            background-color: #1e293b;
            border-left: 4px solid #8b5cf6;
        }
        .concept-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .key-point {
            position: relative;
            padding-left: 1.5rem;
        }
        .key-point:before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.5rem;
            width: 0.5rem;
            height: 0.5rem;
            border-radius: 50%;
            background-color: #8b5cf6;
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6 md:py-28">
        <div class="max-w-5xl mx-auto text-center">
            <div class="inline-flex items-center justify-center bg-white/10 backdrop-blur-sm px-4 py-2 rounded-full mb-6">
                <i class="fas fa-laptop-code mr-2"></i>
                <span class="font-medium">算法解析</span>
            </div>
            <h1 class="text-4xl md:text-5xl font-bold mb-6 leading-tight">字母异位词分组</h1>
            <p class="text-xl md:text-2xl max-w-3xl mx-auto opacity-90 mb-8">
                探索如何高效地将字母异位词分组，深入理解哈希表与排序算法的巧妙应用
            </p>
            <div class="flex flex-wrap justify-center gap-4">
                <div class="px-5 py-2 bg-white/20 backdrop-blur-sm rounded-lg flex items-center">
                    <i class="fas fa-hashtag mr-2"></i>
                    <span>哈希表</span>
                </div>
                <div class="px-5 py-2 bg-white/20 backdrop-blur-sm rounded-lg flex items-center">
                    <i class="fas fa-sort-alpha-down mr-2"></i>
                    <span>排序算法</span>
                </div>
                <div class="px-5 py-2 bg-white/20 backdrop-blur-sm rounded-lg flex items-center">
                    <i class="fas fa-clock mr-2"></i>
                    <span>O(n*k log k)</span>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <div class="max-w-5xl mx-auto px-6 py-12">
        <!-- Problem Description -->
        <section class="mb-16">
            <div class="flex items-center mb-6">
                <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mr-4">
                    <i class="fas fa-question text-indigo-600 text-xl"></i>
                </div>
                <h2 class="text-3xl font-bold text-gray-800">题目描述</h2>
            </div>
            <div class="bg-white rounded-xl shadow-md p-8">
                <p class="text-lg text-gray-700 leading-relaxed mb-6">
                    给定一个字符串数组，将所有<strong class="text-indigo-600">字母异位词</strong>组合在一起。字母异位词指字母相同，但排列不同的字符串。
                </p>
                <div class="bg-indigo-50 border-l-4 border-indigo-500 p-4 rounded mb-6">
                    <div class="flex">
                        <div class="flex-shrink-0 text-indigo-500">
                            <i class="fas fa-info-circle"></i>
                        </div>
                        <div class="ml-3">
                            <p class="text-sm text-indigo-700">
                                <strong>示例</strong>: 输入 ["eat","tea","tan","ate","nat","bat"]，输出 [["bat"],["nat","tan"],["ate","eat","tea"]]
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Key Concepts -->
        <section class="mb-16">
            <div class="flex items-center mb-6">
                <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
                    <i class="fas fa-lightbulb text-purple-600 text-xl"></i>
                </div>
                <h2 class="text-3xl font-bold text-gray-800">核心概念</h2>
            </div>
            <div class="grid md:grid-cols-3 gap-6">
                <div class="concept-card bg-white rounded-xl shadow-md p-6 transition-all duration-300">
                    <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mb-4">
                        <i class="fas fa-hashtag text-purple-600 text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">哈希表</h3>
                    <p class="text-gray-600">
                        用于存储已排序字符串作为键，原始字符串列表作为值，实现高效分组。
                    </p>
                </div>
                <div class="concept-card bg-white rounded-xl shadow-md p-6 transition-all duration-300">
                    <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mb-4">
                        <i class="fas fa-sort-alpha-down text-indigo-600 text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">排序</h3>
                    <p class="text-gray-600">
                        将每个字符串排序后作为哈希表的键，确保异位词有相同的键。
                    </p>
                </div>
                <div class="concept-card bg-white rounded-xl shadow-md p-6 transition-all duration-300">
                    <div class="w-12 h-12 rounded-full bg-pink-100 flex items-center justify-center mb-4">
                        <i class="fas fa-clock text-pink-600 text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">复杂度</h3>
                    <p class="text-gray-600">
                        时间复杂度 O(n*k log k)，空间复杂度 O(n*k)，其中 n 是字符串数量，k 是最长字符串长度。
                    </p>
                </div>
            </div>
        </section>

        <!-- Solution Approach -->
        <section class="mb-16">
            <div class="flex items-center mb-6">
                <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-4">
                    <i class="fas fa-code text-blue-600 text-xl"></i>
                </div>
                <h2 class="text-3xl font-bold text-gray-800">解题思路</h2>
            </div>
            <div class="bg-white rounded-xl shadow-md p-8">
                <div class="mb-8">
                    <h3 class="text-2xl font-bold mb-4 text-gray-800">方法概述</h3>
                    <p class="text-gray-700 leading-relaxed mb-6">
                        字母异位词经过排序后会得到相同的字符串。我们可以利用这一特性，将排序后的字符串作为哈希表的键，原始字符串作为值，从而实现分组。
                    </p>
                    
                    <div class="key-point mb-3 text-gray-700">对每个字符串进行排序，作为哈希表的键</div>
                    <div class="key-point mb-3 text-gray-700">使用哈希表存储分组结果，键为排序后的字符串，值为原始字符串列表</div>
                    <div class="key-point mb-3 text-gray-700">最后返回哈希表中所有的值列表</div>
                </div>
                
                <div class="mb-8">
                    <h3 class="text-2xl font-bold mb-4 text-gray-800">流程图解</h3>
                    <div class="mermaid">
                        graph TD
                            A[输入字符串数组] --> B[遍历每个字符串]
                            B --> C[将字符串排序]
                            C --> D[以排序后的字符串为键存入哈希表]
                            D --> E[将原始字符串添加到对应键的值列表]
                            E --> F[返回所有值列表作为结果]
                    </div>
                </div>
                
                <div class="mb-8">
                    <h3 class="text-2xl font-bold mb-4 text-gray-800">复杂度分析</h3>
                    <div class="grid md:grid-cols-2 gap-6">
                        <div class="bg-gray-50 p-6 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-gray-800 flex items-center">
                                <i class="fas fa-stopwatch mr-2 text-blue-500"></i>时间复杂度
                            </h4>
                            <p class="text-gray-600">
                                O(n * k log k)，其中 n 是字符串数量，k 是最长字符串长度。因为需要对每个字符串进行排序。
                            </p>
                        </div>
                        <div class="bg-gray-50 p-6 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-gray-800 flex items-center">
                                <i class="fas fa-memory mr-2 text-purple-500"></i>空间复杂度
                            </h4>
                            <p class="text-gray-600">
                                O(n * k)，需要存储所有字符串及其排序后的版本。
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Example Code -->
        <section class="mb-16">
            <div class="flex items-center mb-6">
                <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mr-4">
                    <i class="fas fa-terminal text-green-600 text-xl"></i>
                </div>
                <h2 class="text-3xl font-bold text-gray-800">示例代码</h2>
            </div>
            <div class="code-block rounded-xl overflow-hidden shadow-lg">
                <div class="flex items-center bg-gray-800 px-4 py-3">
                    <div class="flex space-x-2 mr-4">
                        <span class="w-3 h-3 rounded-full bg-red-500"></span>
                        <span class="w-3 h-3 rounded-full bg-yellow-500"></span>
                        <span class="w-3 h-3 rounded-full bg-green-500"></span>
                    </div>
                    <span class="text-gray-300 text-sm">Java</span>
                </div>
                <pre class="text-gray-300 p-6 overflow-x-auto"><code>public List&lt;List&lt;String&gt;&gt; groupAnagrams(String[] strs) {
    // 创建哈希表，键为排序后的字符串，值为原始字符串列表
    Map&lt;String, List&lt;String&gt;&gt; groups = new HashMap&lt;&gt;();
    
    // 遍历输入的字符串数组
    for (String s : strs) {
        // 将当前字符串转为字符数组并排序
        char[] charArray = s.toCharArray();
        Arrays.sort(charArray);
        
        // 将排序后的字符数组转回字符串作为键
        String sortedStr = new String(charArray);
        
        // 如果哈希表中不存在此键，创建一个新的列表
        if (!groups.containsKey(sortedStr)) {
            groups.put(sortedStr, new ArrayList&lt;&gt;());
        }
        
        // 将原始字符串添加到对应的分组中
        groups.get(sortedStr).add(s);
    }
    
    // 返回所有分组的列表
    return new ArrayList&lt;&gt;(groups.values());
}</code></pre>
            </div>
        </section>

        <!-- Visual Explanation -->
        <section>
            <div class="flex items-center mb-6">
                <div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center mr-4">
                    <i class="fas fa-project-diagram text-yellow-600 text-xl"></i>
                </div>
                <h2 class="text-3xl font-bold text-gray-800">可视化解释</h2>
            </div>
            <div class="bg-white rounded-xl shadow-md p-8">
                <div class="mermaid">
                    flowchart LR
                        subgraph 输入
                            A["eat, tea, tan, ate, nat, bat"]
                        end
                        
                        subgraph 处理过程
                            B["eat → aet"]
                            C["tea → aet"]
                            D["tan → ant"]
                            E["ate → aet"]
                            F["nat → ant"]
                            G["bat → abt"]
                            
                            H["aet: eat, tea, ate"]
                            I["ant: tan, nat"]
                            J["abt: bat"]
                        end
                        
                        subgraph 输出
                            K[["eat","tea","ate"], ["tan","nat"], ["bat"]]
                        end
                        
                        A --> B & C & D & E & F & G
                        B & C & E --> H
                        D & F --> I
                        G --> J
                        H & I & J --> K
                </div>
            </div>
        </section>
    </div>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>
```